<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );


/**
 * @package		Joomla
 * @subpackage	JobBoard
 */
class JobBoardTableJA_Credits extends JTable
{
	/** @var int Primary key */
	var $id				= null;
	/** @var string */					
	var $value 			= null;
	/** @var int */
	var $price		= null;	
	/** @var string */  
	var $published		= null;
	var $enable_tax		= null;
	/** @var string */  
	var $title		= null;
	
	/**
	* @param database A database connector object
	*/
	function __construct(&$db)
	{
		parent::__construct( '#__ja_credits', 'id', $db );
	}
	function check()
	{
		JFilterOutput::objectHTMLSafe($this,ENT_QUOTES,'');
		return true;
	}
	function load($key)
	{
		parent::load($key);
		$this->title = JFilterInput::_decode($this->title);
		$this->title = JFilterInput::clean($this->title);
		return $this;
	}	
}